import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import City from '@/components/City'
import Detail from '@/components/Detail'
import Rou from '@/components/Rou'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: __dirname,
  routes: [{
      path: '/',
      name: 'homeLink',
      component: Home
    },
    {
      path: '/city',
      name: 'cityLink',
      component: City
    },
    {
      // path: '/detail/:id',
      path: '/detail',
      name: 'detailLink',
      component: Detail
    },
    {
      path: '/rou',
      name: 'rouLink',
      component: Rou
    }
  ]

})
